home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3622 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1013 b 

  1. Path: news.wwa.com!news
  2. From: theobals@wwa.com (Theo Bals)
  3. Newsgroups: comp.lang.c++
  4. Subject: GetSystemMetrics
  5. Date: 25 Jan 1996 04:38:54 GMT
  6. Organization: Your Organization
  7. Message-ID: <4e71gu$ja@kirin.wwa.com>
  8. NNTP-Posting-Host: pool4-058.wwa.com
  9. Mime-Version: 1.0
  10. Content-Type: Text/Plain; charset=ISO-8859-1
  11. X-Newsreader: WinVN 0.99.5
  12.  
  13. Hi there fellow C programmers
  14.  
  15. I am (trying to) use the function 'GetSyetemMetrics' to find out the 
  16. size of a window.
  17. The documentation supplied with the Microsoft Visual V1.5 complier  
  18. seems to indicate i should use GetsystemMetrics(SM_SXSCREEN) for the 
  19. width and GetSystemMetrics(SM_CYSCREEN) for the height of the window.
  20. But it looks like these functions always return the values as if the 
  21. window was maximized. I have solved my particular problem by 
  22. 'intercepting' the WM_SIZE message from windows which gives me the size
  23. of the resized window in lParam but i am wondering if i am doing the 
  24. right thing here. 
  25. As anyone had any problems with this also?
  26.  
  27. Theo.
  28.  
  29.  
  30.